package com.jboost.common.base;

import java.util.List;


public class CommonPage<T> {
    /**
     * 当前页码
     */
    private Integer pageNum;
    /**
     * 每页数量
     */
    private Integer pageSize;
    /**
     * 总页数
     */
    private Integer totalPage;
    /**
     * 总条数
     */
    private Integer total;
    /**
     * 分页数据
     */
    private List<T> list;


    public Integer getPageNum() {
        return pageNum;
    }

    public CommonPage<T> setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
        return this;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public CommonPage<T>  setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
        return this;
    }

    public Integer getTotalPage() {
        return totalPage;
    }

    public CommonPage<T> setTotalPage(Integer totalPage) {
        this.totalPage = totalPage;
        return this;
    }

    public List<T> getList() {
        return list;
    }

    public CommonPage<T> setList(List<T> list) {
        this.list = list;
        return this;
    }

    public Integer getTotal() {
        return total;
    }

    public CommonPage<T> setTotal(Integer total) {
        this.total = total;
        return this;
    }
}
